package com.vic.kjlink.order.model;

import com.vic.kjlink.order.third.OaUser;

import pers.vic.boot.base.model.BaseEntity;

/**
 * 用户表 实体类
 *
 * @author Vic.xu
 */
public class User extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * userName
     */
    private String userName;

    /**
     * userCode
     */
    private String userCode;

    /**
     * password
     */
    private String password;

    /**
     * phoneNumber
     */
    private String phoneNumber;

    /**
     * departmentName
     */
    private String departmentName;

    private int type;

    public User() {}

    public User(OaUser oaUser) {
        this.userName = oaUser.getUsername();
        this.userCode = oaUser.getUsercode();
        this.password = oaUser.getPassword();
        this.departmentName = oaUser.getDepartmentname();
        this.type = oaUser.getPosition();

    }

    /* **************** set|get start ************************************* */
    /**
     * set：userName
     */
    public User setUserName(String userName) {
        this.userName = userName;
        return this;
    }

    /**
     * get：userName
     */
    public String getUserName() {
        return userName;
    }

    /**
     * set：userCode
     */
    public User setUserCode(String userCode) {
        this.userCode = userCode;
        return this;
    }

    /**
     * get：userCode
     */
    public String getUserCode() {
        return userCode;
    }

    /**
     * set：password
     */
    public User setPassword(String password) {
        this.password = password;
        return this;
    }

    /**
     * get：password
     */
    public String getPassword() {
        return password;
    }

    /**
     * set：phoneNumber
     */
    public User setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
        return this;
    }

    /**
     * get：phoneNumber
     */
    public String getPhoneNumber() {
        return phoneNumber;
    }

    /**
     * set：departmentName
     */
    public User setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
        return this;
    }

    /**
     * get：departmentName
     */
    public String getDepartmentName() {
        return departmentName;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }
    /***************** set|get end **************************************/
}
